package com.example.orderservice.service;

import com.example.orderservice.pojo.vo.DiscountUserAndDiscountsVO;
import com.example.orderservice.pojo.vo.DiscountUserVO;

import java.util.List;

/**
 * @author 鱼凫
 * @version 1.0
 * Create by 2023/4/12 10:41
 */

public interface DiscountUserService {
    DiscountUserVO add(DiscountUserVO discountUserVO);

    /**
     * 我的未过期未使用的优惠券
     * @return
     */
    List<DiscountUserAndDiscountsVO> getMyDiscount();

    void gotCoupon(String discountsId);

    boolean isGotThisCoupon(String uid, String discountsId);

    boolean isUsed(String uid, String discountsId);

    void changeDiscountStatus(String discount, int status);
}
